package wyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dto.Result;
import com.entity.Post;
import org.springframework.web.multipart.MultipartFile;

public interface PostService extends IService<Post> {
    Integer getPostNumByBarId(int barId);

    Result getPostsBySortType(int index, int pageSize, String accordingTo);

    Result publishPost(MultipartFile[] files, int barId, String title, String content, String pure_content, String uname);

    Result getPostInfo(int postId,String uName);
}
